//package vip.geeker.iotms.help;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
//import javax.annotation.Resource;
//
///**
// * @Author zhoup
// * @Date 2020/4/29 5:34 下午
// * @Description 增加拦截器
// * @Email acacio@foxmail.com
// * To change this template use File | Settings | Editor | File and Code Templates.
// **/
//@Configuration
//public class WebConfigurer implements WebMvcConfigurer {
//
//    @Bean
//    public SessionTimeoutInterceptor sessionTimeoutInterceptor() {
//        return new SessionTimeoutInterceptor();
//    }
//
//
//    /**
//     * 会话拦截
//     * @param registry
//     */
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(sessionTimeoutInterceptor())
//                .addPathPatterns("/**")
//                .excludePathPatterns("/","/user/login","/user/logout","/user/getGifCode");
//
//    }
//    /**
//     * 添加静态资源文件，外部可以直接访问地址
//     * @param registry
//     */
//    @Override
//    public void addResourceHandlers(ResourceHandlerRegistry registry) {
//        registry.addResourceHandler("/static/**");
//    }
//}
